package com.qmds.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_sms_log")
@NoArgsConstructor
@AllArgsConstructor
public class SmsLog extends Model<SmsLog> {
    //序号，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //手机号
    private String phone;
    //类型
    private String type;
    //内容
    private String info;
    //创建时间
    private Date createTime;


    public SmsLog(String phone, String type, String info) {
        this.phone = phone;
        this.type = type;
        this.info = info;
        this.createTime=new Date();
    }
}
